package com.chance.cc.crawler.prod.command.schedule.commerce.gome;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.commerce.gome.realtime.GomeArticleCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.job.domain.commerce.gome.realtime.GomeCommentCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.job.domain.commerce.gome.realtime.GomeCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

public class GomeCommonCrawlerJobSchedule extends CommonCrawlerJobSchedule {
    public static void main(String[] args) {
        commonCrawlerScheduleJob(GomeCrawlerScheduleJob.articleUrlSchedule());
        //commonCrawlerScheduleJob(GomeArticleCrawlerScheduleJob.articleSchedule());
        //commonCrawlerScheduleJob(GomeCommentCrawlerScheduleJob.commentSchedule());
        //delCrawlerCJob(GomeArticleCrawlerScheduleJob.articleSchedule());
    }
    public static void commonCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_2);//device_name_2
    }
    public static void delCrawlerCJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_2);
    }
}
